package com.zc.study.thread.多线程第三章节.thread3_4;

import java.util.Date;

public class InheritableThreadLocalExit extends InheritableThreadLocal {

    @Override
    protected Object initialValue() {
        return new Date().getTime();
    }

    @Override
    protected Object childValue(Object parentValue) {
        long i=(long)parentValue;
        return "在子线程中添加的内容::"+(i+1);
    }
}
